#include "app_timer.h"
#include "app_tft.h"
//#include "app_flash.h"
//#include "key.h"
#include "functionhandle.h"
#include "api_io.h"




#include "spi_flash.h"


#include "nes_main.h"
void led_task();
void debugtask();
int main() 
{
    h_api_io.init(&h_api_io);
    //weigen_exint_line_init();
    beep.set(&beep);
    board_init();
    delay_init();
    beep.clr(&beep);
    init_tft();

    nes_main();
	return 0;
}

void debugtask()
{
    static int cnt = 0;
    //debug(0,"debugtask%d\r",cnt++);
}
